<template>
  <h1>EL-开关组件</h1>
  <el-switch v-model="isShow"></el-switch>
  <el-switch v-model="value1" :active-value="1" :inactive-value="0"></el-switch>
  <el-switch v-model="value2" :active-value="'1'" :inactive-value="'0'"></el-switch>
</template>

<script setup>
import {ref} from "vue";

const isShow = ref(true);
const value1 = ref(1);
const value2 = ref('1');
</script>


<style scoped>

</style>
